package cookie

import (
	"blog2/util"
	"fmt"
)

var loggedIn = make(map[string]string, 1000)

func BuildCookieByUid(uid int) string {
	key := util.RandStringRunes(20)
	loggedIn[key] = fmt.Sprintf("%d", uid)
	util.LogRus.Infof("cookie value: %s", key)
	return key
}
